﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class MasterPage : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Page.User.Identity.IsAuthenticated)
            {
                lbSignIn.Visible = false;
                lbProfile.Visible = true;
                loginForm.Visible = true;
            }
        }       
    }

    protected void lbHome_Click(object sender, EventArgs e)
    {
        Response.Redirect("HomePage.aspx");
    }
    protected void lbMovies_Click(object sender, EventArgs e)
    {
        Response.Redirect("GenresPage.aspx");
    }
    protected void lbProfile_Click(object sender, EventArgs e)
    {
        Response.Redirect("ProfilePage.aspx");
    }
    protected void lbSignIn_Click(object sender, EventArgs e)
    {
        loginForm.Visible = true;
    }
}
